package com.example.rabbitmq.rabbitmq;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class DeadReceiveListener {
    @RabbitListener(queues = "queue_receive")
    public void receiveMsg(String msg) {
        log.info("队列接收到消息：{}" , msg);
    }

}
